const React = require('react')
const ReactDOM = require('react-dom')
const App = require('./App')

ReactDOM.render(<App />, document.getElementById('root'))

if ('serviceWorker' in navigator) {
  // false && 
  navigator.serviceWorker.register('/assets/sw.js', {scope: '/assets/'})
  .then(function(reg) {
    // registration worked
    console.log('Registration succeeded. Scope is ' + reg.scope);
  }).catch(function(error) {
    // registration failed
    console.log('Registration failed with ' + error);
  });
}

